package 笔试;

import java.util.Scanner;

public class 小红书_乘积为7 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

        scan.nextLine();

        int[] A = new int[n];
        for (int i = 0; i < n; i++) {
            A[i] = scan.nextInt();
        }
        int count = 0;
        int tmp = Integer.MAX_VALUE;
        int flag = 0;
        for (int i = 0; i < n; i++) {
            if(Math.abs(7-A[i]) <= Math.abs(-7-A[i])) {
                int tmp1 = Math.abs(7-A[i]);
                tmp = tmp1 < tmp ? tmp1 : tmp;
                if(tmp == tmp1) {
                    flag = i;
                }

            } else {
                int tmp1 = Math.abs(-7-A[i]);
                tmp = tmp1 < tmp ? tmp1 : tmp;
                if(tmp == tmp1) {
                    flag = i;
                }
            }

        }
        A[flag] = Math.abs(7-A[flag]) <= Math.abs(-7-A[flag]) ? 7 : -7;
        count += tmp;

        for (int i = 0; i < n; i++) {
            if(i != flag) {
                if(A[i] != 1 || A[i] != -1) {
                    int tmp1 = Math.abs(1-A[i]) <= Math.abs(-1-A[i]) ? Math.abs(1-A[i]) : Math.abs(-1-A[i]);
                    A[i] = Math.abs(1-A[i]) <= Math.abs(-1-A[i]) ? 1 : -1;
                    count += tmp1;
                }
            }
        }

        int ans = 1;
        for (int i = 0; i < n; i++) {
            ans *= A[i];
        }

        if(ans > 0) {
            System.out.println(count);
        } else {
            System.out.println(count+2);
        }
    }
}
